package cn.zerlynn.sql.dialect.model;

/**
 * Column
 *
 * @author: zerlynn
 * @createTime: 2024/10/24 0:14
 */
public class Column {
    private String name;
    private String dataType;
    private boolean isNullable;
    private String defaultValue;
    private String comment;

    public Column(String name, String dataType, boolean isNullable, String defaultValue) {
        this.name = name;
        this.dataType = dataType;
        this.isNullable = isNullable;
        this.defaultValue = defaultValue;
    }

    public String getName() {
        return name;
    }

    public String getDataType() {
        return dataType;
    }

    public boolean isNullable() {
        return isNullable;
    }

    public String getDefaultValue() {
        return defaultValue;
    }
}
